<div class="col-md-8 col-sm-8">
	<div class="panel panel-primary">
		<div class="panel-heading">
		  <h3 class="panel-title">Hồ sơ: <b><?=$canhan->ho_ten?></b></h3>
		</div>
		<div class="panel-body">
			<div class="row">
				<div class="col-md-5 col-sm-5">
					<?php $img = base_url('assets/img/no_image.png');
						if($canhan->avatar)
							$img = base_url('uploads/images/full/'.$canhan->avatar);
					?>
					<img src="/assets/timthumb.php?w=250&src=<?=$img?>" alt="<?=$canhan->ho_ten?>" class="img-thumbnail"/>
					
					<div class="panel-heading text-center">Mã số: <strong><?=$canhan->code?></strong></div>
					<div class="phone">
						<?php if($is_viewed):?>
							<p><label class="control-label"><strong>Di động:</strong> <span style="color:#ED0304"><?=$canhan->di_dong1?></span></label></p>
							<table class="table-dashed" width="100%">
								<thead>
									<tr>
										<th width="65%">Dịch vụ</th>
										<th >Giá</th>
									</tr>						
								</thead>
								<tbody>
								<?php foreach($dichvu as $obj):?>
									<tr>
										<td><?=$obj->ten?></td>
										<td style="text-align:right;"><?=$obj->catse ? number_format($obj->catse,0,'','.') : 'Liên hệ'?></td>
									</tr>
								<?php endforeach;?>
								</tbody>
							</table>
							<p>&nbsp;</p>
							<p class="text-center" >
								<a onclick="download_profile(<?=$canhan->id?>,<?=$point_download?>,event)" class="btn btn-success" title="Download hồ sơ: <?=$canhan->ho_ten?>" >Download hồ sơ</a>
							</p>
						<?php else :
							global $userdata;
							if($userdata['ntd_id'])
								$href = 'onclick="show_phone('.$canhan->id.','.$point.',event)"';
							else{
								$href = 'href="'.site_url('dang-nhap').'"';
								$this->session->set_flashdata('return', $this->uri->uri_string);
							}
							if(!$userdata['canhan_id']):
						?>
							<p class="text-center" >
								<a <?=$href?> class="btn btn-danger" title="Hiển thị di động & cát-xê: <?=$canhan->ho_ten?>" >Xem di động & cát-xê</a>
							</p>
						<?php endif;?>
						<?php endif;?>
					</div>
					<?php $total_votes = isset($rating->total_votes) ? $rating->total_votes : 0; 
						$total_value = isset($rating->total_value) ? $rating->total_value : 0;
						$votes = $total_votes ? $total_votes : 1;
						$rat = round($total_value/$votes,2);
					?>
					<?php if($rated) $cls = ""; else $cls = "ratings_event";?>
					<span class="left" style="width:35px">&nbsp;</span>
					<div id="rating_<?=$canhan->id;?>" class="ratings">							
					<?php for($k=1;$k<6;$k++){
						if($rat+0.5	> $k)	
							$class="star_$k $cls ratings_stars ratings_vote";
						else 
							$class="star_$k $cls ratings_stars ratings_blank";
						echo '<div class="'.$class.'"></div>';
						}
					?>
						<input type="hidden" class="ratingType" value="CN"/>
						<div class="total_votes">
							<span class="voted">&nbsp;&nbsp;&nbsp;<strong><?=$rat?></strong>/5 (<?=$total_votes?> votes)</span>
						</div>
					</div>
				</div>
				<div class="col-md-7 col-sm-7">
					<table class="table-dashed" width="100%">
						<tbody>
							<tr>
								<td width="40%"><strong>Họ và tên</strong></td>
								<td><?=$canhan->ho_ten?></td>
							</tr>
							<tr>
								<td><strong>Ngày sinh</strong></td>
								<td><?=date('d/m/Y',strtotime($canhan->ngay_sinh))?></td>
							</tr>
							<tr>
								<td><strong>Nơi ở hiện tại</strong></td>
								<td><?=$canhan->ten_tinh .', '.$canhan->ten_quan?></td>
							</tr>
							<?/*
							<tr>
								<td><strong>Chiều cao</strong></td>
								<td><?=$canhan->chieu_cao_m.'m'.$canhan->chieu_cao_cm?></td>
							</tr>
							<tr>
								<td><strong>Cân nặng</strong></td>
								<td><?=$canhan->can_nang?>kg</td>
							</tr>
							<tr>
								<td><strong>Số đo 3 vòng</strong></td>
								<td><?=$canhan->vong1.'-'.$canhan->vong2.'-'.$canhan->vong3?></td>
							</tr>							
							<tr>
								<td><strong>Trình độ học vấn</strong></td>
								<td><?=$canhan->hoc_van?></td>
							</tr>
							<tr>
								<td><strong>Ngoại ngữ</strong></td>
								<td><?=$canhan->ngoai_ngu?></td>
							</tr>
							<tr>
								<td><strong>Năng khiếu khác</strong></td>
								<td><?=$canhan->nang_khieu?></td>
							</tr>*/?>
							<tr>
								<td><strong>Công việc hiện tại</strong></td>
								<td><?=$canhan->noi_ctac_htai?></td>
							</tr>
							<tr>
								<td><strong>Thời gian làm việc</strong></td>
								<td><?=substr($canhan->tgian_tu,0,5) . ' - ' . substr($canhan->tgian_den,0,5)?></td>
							</tr>
							<tr>
								<td><strong>Bằng cấp bếp</strong></td>
								<td><?=$canhan->bang_cap_bep?></td>
							</tr>
							<tr>
								<td><strong>Món sở trường</strong></td>
								<td><?=$canhan->mon_so_truong?></td>
							</tr>
							<tr>
								<td><strong>Công việc mong muốn</strong></td>
								<td><?=$canhan->cv_mong_muon?></td>
							</tr>
							<tr>
								<td><strong>Kinh nghiệm</strong></td>
								<td><?=$canhan->kinh_nghiem?></td>
							</tr>
						</tbody>
					</table>
					<p>&nbsp;</p>
					<?php $this->load->view('tpl/sharethis')?>
				</div>
				<p>&nbsp;</p>
				<div class="clearfix title-bg text-center">
					<h4>Album ảnh</h4>
				</div>
				<?php if(!$album) echo '<p class="panel-body"></p>';?>
				<ul id="imageshow" class="hoso-list">
				<?php foreach($album as $obj):?>
					<li>
						<a class="img-thumbnail" href="<?=base_url('uploads/images/full/'.$obj->thumb)?>" title="<?=$canhan->ho_ten?>" class="album">
							<img src="/assets/timthumb.php?w=142&src=<?=base_url('uploads/images/full/'.$obj->thumb)?>" alt="<?=$canhan->ho_ten?>"/>
						</a>
					</li>
				<?php endforeach;?>													
				</ul>				
				<div class="clearfix title-bg text-center">
					<h4>Kinh nghiệm làm việc</h4>
				</div>
				<p class="panel-body"><?=$canhan->kinh_nghiem?></p>
				<div class="clearfix title-bg text-center">
					<h4>Sở trường</h4>
				</div>
				<ul class="sotruong">
				<?php foreach($dichvu as $obj):?>
					<li><?=$obj->ten?></li>
				<?php endforeach;?>
				</ul>
				<div class="clearfix title-bg text-center">
					<h4>Bình luận - Nhận xét - Đánh giá</h4>
				</div>
				<p class="panel-body"><strong>Vui lòng lịch sự khi đăng bình luận. Không lăng mạ, nói tục, nói xấu người khác.</strong></p>
				<ol>
					<li>Tôn trọng những người cùng bình luận.</li>
					<li>Không dùng từ ngữ thô tục, thô lỗ, xúc phạm.</li>
					<li>Không dùng ngôn ngữ có tính lăng mạ, sỉ nhục, khích bác người khác.</li>
					<li>Không đăng các quảng cáo thương mại</li>
				</ol>
				<div class="fb-comments" data-href="<?=site_url($this->uri->uri_string());?>" data-width="100%" data-numposts="5" data-colorscheme="light"></div>
			</div>
		</div>
	</div>
	<div class="panel panel-primary">
		<div class="panel-heading">
		  <h3 class="panel-title">Hồ sơ PG-PB-MODEL khác</h3>
		</div>
		<div class="panel-body">
			<ul class="hoso-list">
			<?php foreach($others as $obj):
				$title = date('d/m/Y',strtotime($obj->ngay_sinh)).'|'.$obj->chieu_cao_m.'m'.$obj->chieu_cao_cm.'|'.$obj->can_nang.'kg|'.$obj->vong1.'-'.$obj->vong2.'-'.$obj->vong3;
			?>
				<li>
					<a class="img-thumbnail" href="<?=site_url('dau-bep/'.remove_accents($obj->ho_ten).'-'.$obj->id)?>" title="<?=$title?>">
					<?php $img = base_url('assets/img/no_image.png');
						if($obj->avatar)
							$img = base_url('uploads/images/full/'.$obj->avatar);
					?>
						<img src="/assets/timthumb.php?w=142&src=<?=$img?>" alt="<?=$title?>"/>
					</a>						
					<a class="hoten" href="<?=site_url('dau-bep/'.remove_accents($obj->ho_ten).'-'.$obj->id)?>" title="<?=$obj->ho_ten?>"><?=$obj->ho_ten?></a>
				</li>
			<?php endforeach;?>
			</ul>
			<a class="clearfix more" href="<?=site_url('pg-pb-model')?>" >Xem hết...</a>
			<?/*
			<div class="row">
				<?php foreach($others as $obj):?>
				<div class="box_profile">
					<div class="name_profile"><?=$obj->ho_ten;?></div>
					<?php $img = base_url('assets/img/no_image.png');
						if($obj->avatar)
							$img = base_url('uploads/images/full/'.$obj->avatar);
					?>
					<div class="profile_img">
						<a href="<?=site_url('dau-bep/'.remove_accents($obj->ho_ten).'-'.$obj->id)?>" title="PGPB: <?=$obj->ho_ten;?>">
							<img src="/assets/timthumb.php?w=160&h=170&src=<?=$img?>" alt="PGPB: <?=$obj->ho_ten;?>" />
						</a>
					</div>
					<div class="profile_info">
						<p><b>Ngày sinh</b></p>
						<p><?=date('d/m/Y',strtotime($obj->ngay_sinh))?></p>
						<br clear="all" />
						<p><b>Nơi ở hiện tại</b></p>
						<p>Tp Hồ Chi Mính</p>
						<br clear="all" />
						<p><b>Chiều cao</b></p>
						<p><?=$obj->chieu_cao_m.'m'.$obj->chieu_cao_cm?></p>
						<br clear="all" />
						<p><b>Cân nặng</b></p>
						<p><?=$obj->can_nang?>kg</p>
						<br clear="all" />
						<p><b>Số đo 3 vòng</b></p>
						<p><?=$obj->vong1.'-'.$obj->vong2.'-'.$obj->vong3?></p>				
						<br clear="all" />
					</div>
				</div>
			<?php endforeach;?>
			<a class="clearfix more" href="<?=site_url('pg-pb-model')?>" >Xem hết...</a>
			</div>
		*/?>
		</div>
	</div>
</div>
<script type="text/javascript" src="<?=base_url('assets/js/jquery.fileDownload.js')?>"></script>